package com.limu.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ViewTestController {

    @GetMapping("/limu")
    public String limu(Model model) {

        //model中的数据会被放在请求域中 request.setAttribute（“a”,aa)
        model.addAttribute("msg", "你好，李牧");
        model.addAttribute("link", "http://www.7k7k.com");
        return "success";
    }
}
